package cn.ilikes.tools.nosql.jpa.configs.databases;

import java.net.URL;

public class DataStoreFactoryImples implements IDataStoreFactory {

	public DataStoreConfigs paserConfig(String configfile) throws DataStoreRunTimeException {
		PaserConfigs paserConfigs = new DefaultPaserConfigs();
		URL url = Thread.currentThread().getContextClassLoader().getResource(configfile);
		DataStoreConfigs dataStore = paserConfigs.paserConfigs(url);
		return dataStore;

	}

}
